package com.ccll.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ccll.domain.po.User;

import java.util.Map;

/**
 * @author Seon
 * @date 2022/11/12 10:19
 */
public interface UserService extends IService<User> {
    /**
     * 登录成功则传回token
     *
     * @return token
     */
    String login(User user);

    /**
     * 退出登录
     */
    boolean logout();

    /**
     * 注册用户
     *
     * @return 注册结果
     */
    boolean signup(User user);

    User getUserByName(String username);
}
